package org.example.clouddemo.feign;

import org.example.clouddemo.bean.common.entity.Stock;
import org.example.clouddemo.bean.common.param.StockParam;
import org.example.common.response.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-product", path = "/api/app/stock",contextId = "stockFeignClient")
public interface StockFeignClient {


    @PostMapping("getOne")
    ApiResult<Stock> getOne(@RequestBody StockParam param);

    @PostMapping("update")
    ApiResult update(@RequestBody Stock stock);
}
